/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;

/**
 *
 * @author Guillaume
 */
@Stateless
@LocalBean
public class Converter {
    private Float fromAmount;
    private Float changeRate;
    private Float convertAmount;

    public Converter() {
    }

    public void convert(Float fromAmount,Float changeRate){
        this.fromAmount = fromAmount;
        this.changeRate = changeRate;
        this.convertAmount = fromAmount * changeRate;
    }
    public Float getConvertAmount(){
        return convertAmount;
    }
}
